package com.xf.lastmall.order.api.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author mybatis plus自动生成代码类：MybatisResourcesGenerator.java
 * @since 2021-01-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class SaleErpRecordEntity implements Serializable {

    private static final long serialVersionUID = 1L;
    private Long id;
    private String orderNo;

    private String orderSubNo;

    private String consumeId;

    private Date createTime;

    private Date updateTime;
    //0待上传 1上传失败 2上传成功 3不需上传
    private Integer salesStatus;
    //0待上传 1上传失败 2上传成功 3不需上传
    private Integer pointsStatus;
//    是否自动积分 用于试点时期是否去操作（如果是自动积分并且是租用店铺才需要去上传会员系统）
    /**
     * 调整字段含义 1： 不支持核销自动积分
     * 0： 支持核销自动积分
     */
    private Integer autoPoint = 1;

    //本地核销店铺->通过merchantCode去查询对应的ErpShopNo
    private String merchantCode;
    //会员号码
    private String mobile;

    private String cardId;

    private String couponName;

    private String couponId;
    //本地的mallCode并非erpmallCode
    private String mallCode;
    //分账类型-》冗余订单的
    private Integer accountsType;
    //最近的一次失败原因
    private String salesReason;
    private String pointsReason;
    //重试次数
    private Integer version;
    //支付流水
    private String transNo;
    //支付方式
    private Integer payType;
    private BigDecimal sellPrice;
    private Integer points;
    private String userId;

    private String commodityName;
    private String commodityNo;
    private BigDecimal marketPrice;
    private String commodityProperty;
}
